#!/usr/bin/env python
from PyQt4 import QtGui
from PyQt4 import QtCore
from PyQt4.QtCore import Qt,SIGNAL

import os
from lib.uicompile import loadUiType

ui_path= os.path.join ( os.getcwd() , 'ui','add_contact.ui')
UI_Object, Qt_Type = loadUiType(ui_path)

from lib.profile_manager import ProfileManager


class AddContact ( Qt_Type, UI_Object ):
	def __init__ ( self, parent = None ):
		super ( Qt_Type, self ).__init__ ( parent )
		self.__index = 0
		self.setupUi ( self )


	def keyPressEvent ( self, event ):
		if event.key () == Qt.Key_Escape:
			self.reject()
